<include file="Common@Backend/header" />
    <!-- page heading start-->
    <div class="page-heading">
        <h3>
            {$breadcrumb.A}
        </h3>
        <ul class="breadcrumb">
            <li>
                {$breadcrumb.M}
            </li>
            <li>
                {$breadcrumb.C}
            </li>
            <li class="active"> {$breadcrumb.A}  </li>
        </ul>
    </div>
    <!-- page heading end-->
    
    <!--body wrapper start-->
    <div class="wrapper">
        <div class="row">
            <div class="col-lg-12">
                <section class="panel">
                    <form role="form" action="{$action}" method="post">
                        <header class="panel-heading">
                            编辑分类
                        </header>
                        <div class="panel-body">
                            <div class="form-group">
                                <label for="catename">分类名称</label>
                                <input type="text" name="catename" class="form-control" id="catename" placeholder="输入分类名称" value="{$catelist.catename}">
                            </div>
                      
                            <div class="form-group">
                                <label for="keyword">关键词</label>
                                <input type="text" name="keyword" class="form-control" id="keyword" placeholder="输入关键词" value="{$catelist['keyword']}">
                            </div>
                            <div class="form-group">
                                <label for="description">描述</label>
                                <input type="text" name="description" class="form-control" id="description" placeholder="输入描述" value="{$catelist['description']}">
                            </div>
                         
                            <div class="form-group">
                                <label for="precategory">上级分类</label>
                                <!-- <input type="text" name="description" class="form-control" id="description" placeholder="输入描述" value="{$catelist['catename']}"> -->
                                <select class="form-control m-bot15" id="precategory" name="precategory" >
                                    <option value="0">顶级分类</option>
                                   {$str}
                                </select>
                            </div>
                            
                            <div class="form-group">
                                <label for="status">状态</label>

                                <select class="form-control m-bot15" id="status" name="status">
                                <if condition="$catelist.status eq 1">
                                    <option value="1" selected="selected">启用</option>
                                    <option value="0">禁用</option>
                                <else/>
                                    <option value="1">启用</option>
                                    <option value="0" selected="selected">禁用</option>
                                </if>
                                </select>
                            </div>
                           

                            <button class="btn btn-success" type="submit">保存</button>
                            <button class="btn btn-danger"><a href="{$cancle}">取消</a></button>
                        </div>
                       
                    </form>
                </section>
            </div>
        </div>
    </div>
    <!--body wrapper end-->
<include file="Common@Backend/footer" />